<div class="flash-message<?= isset($messageClass) ? " $messageClass" : "" ?>">
	<?= $message; ?>
</div>
<script type="text/javascript">
setTimeout(function(){

	var h = $('.flash-message').outerHeight();
	$('.flash-message').animate({
		top: -1 * h - 20 
	}, 500);
}, 2000);
</script>